package cn.xuewenbao.ucenter.controller;

import cn.xuewenbao.ucenter.entity.VipType;
import cn.xuewenbao.ucenter.service.VipService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 会员 前端控制器
 * </p>
 *
 * @author liubf
 * @since 2021-07-07
 */
@RestController
@RequestMapping("/ucenter/vip")
@Api(tags = "会员表")
public class VipController {

    @Autowired
    private VipService vipService;

    @ApiOperation(value = "获取全部会员类型")
    @GetMapping("getAllVipType")
    public Result<List<VipType>> getAllVipType() {
        return vipService.getAllVipType();
    }
}
